package cn.ronghuanet.auth.service.impl;

import cn.ronghuanet.auth.domain.Menu;
import cn.ronghuanet.auth.mapper.MenuMapper;
import cn.ronghuanet.auth.service.IMenuService;
import cn.ronghuanet.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> tree(Long loginUserId) {
        return menuMapper.tree(loginUserId);
    }
}
